package org.nfIt.service;

import com.github.pagehelper.PageInfo;
import org.nfIt.dto.h5.ProductSkuDto;
import org.nfIt.entity.product.ProductSku;
import org.nfIt.vo.h5.ProductItemVo;

import java.util.List;

/**
 * ClossName:ProductService
 * Pakage:org.nfIt.service
 * Description
 *商品接口
 * @Author L
 * @Create 2024/9/18 20:20
 * @Version 2023.1.3
 */
public interface ProductService {
    //查询热销商品，根据sale_num查询前10条
    List<ProductSku> findProductSkuBySale();

    /**
     * 分页查询
     * @param page
     * @param limit
     * @param productSkuDto
     * @return
     */
    PageInfo<ProductSku> findByPage(Integer page, Integer limit, ProductSkuDto productSkuDto);

    /**
     * 查询商品详情
     * @param skuId
     */
    ProductItemVo item(Long skuId);
}
